package com.xx.pmis.model;

import java.util.HashSet;
import java.util.Set;


/**
 * @class 用户实体类 <br>
 * 
 * @editor jack.shi @Date 2011-9-21 下午02:32:26 <br>
 * @version jdk_1.5.0
 */
public class User extends AbstractEntity implements Comparable<Entity>  {
	/**
	 * 序列化
	 */
	private static final long serialVersionUID = 1L;

	private String userID; // 用户ID
	private String userName; // 用户名称
	private String userCode; // 用户代码，以10开头，共六位
	private String userPassword; // 密码
	private String userRegDate; // 注册日期
	private String userModDate; // 修改日期
	private String userState;
	private String userDesc;
	private String userDelFlag;

	// 附加
	private Role role;
	private String loginName; // 用户登录名称
	
	private Set<TourismPlan> tourismPlan = new HashSet<TourismPlan>(0);

	public User() {
		super();
	}

	public User(String userID, String userName, String userCode,
			String userPassword, String userRegDate, String userModDate,
			String userState, String userDesc, String userDelFlag) {
		super();
		this.userID = userID;
		this.userName = userName;
		this.userCode = userCode;
		this.userPassword = userPassword;
		this.userRegDate = userRegDate;
		this.userModDate = userModDate;
		this.userState = userState;
		this.userDesc = userDesc;
		this.userDelFlag = userDelFlag;
	}

	public String getUserID() {
		return userID;
	}

	public void setUserID(String userID) {
		this.userID = userID;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserCode() {
		return userCode;
	}

	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}

	public String getUserPassword() {
		return userPassword;
	}

	public void setUserPassword(String userPassword) {
		this.userPassword = userPassword;
	}

	public String getUserRegDate() {
		return userRegDate;
	}

	public void setUserRegDate(String userRegDate) {
		this.userRegDate = userRegDate;
	}

	public String getUserModDate() {
		return userModDate;
	}

	public void setUserModDate(String userModDate) {
		this.userModDate = userModDate;
	}

	public String getUserState() {
		return userState;
	}

	public void setUserState(String userState) {
		this.userState = userState;
	}

	public String getUserDesc() {
		return userDesc;
	}

	public void setUserDesc(String userDesc) {
		this.userDesc = userDesc;
	}

	public String getUserDelFlag() {
		return userDelFlag;
	}

	public void setUserDelFlag(String userDelFlag) {
		this.userDelFlag = userDelFlag;
	}

	public Role getRole() {
		return role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public Set<TourismPlan> getTourismPlan() {
		return tourismPlan;
	}

	public void setTourismPlan(Set<TourismPlan> tourismPlan) {
		this.tourismPlan = tourismPlan;
	}
	
}
